package com.ctrip.cap.internal.appium.suite.android;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.ctrip.cap.device.DeviceStore;
import com.ctrip.cap.device.android.AndroidDevice;
import com.ctrip.cap.device.android.impl.DefaultDeviceStore;
import com.ctrip.cap.internal.appium.suite.Preprocess;
import com.ctrip.cap.internal.appium.suite.android.H5ProcessFilter.OppoBatteryNotifierFilter;

public class H5Preprocess implements Preprocess {

	DeviceStore<AndroidDevice> deviceStore = DefaultDeviceStore.getInstance();
	private static final Logger logger = LoggerFactory
			.getLogger(H5Preprocess.class);

	@Override
	public void process() {
		logger.debug("h5 preprocess");
		for (AndroidDevice device : deviceStore.getDevices()) {
			new OppoBatteryNotifierFilter().doFilter(device);
		}
	}
}
